//
//  GoodsService.h
//  share_business
//  商品相关
//  Created by 吴于凌 on 2017/9/23.
//  Copyright © 2017年 wyl. All rights reserved.
//

#import "BaseService.h"

#import "HomeModel.h"
@interface GoodsService : BaseService


 /**
  首页
  @param success <#success description#>
  @param fail    <#fail description#>
  */
+(void)getHomeIndex: (serviceSuccess)success failure:(serviceFailure)fail ;
 /**
  所有商品分类

  @param success <#success description#>
  @param fail    <#fail description#>
  */
+(void)getproductCatgoryList:(serviceSuccess)success failure:(serviceFailure)fail ;

/**
 商品分类(父级)

 @param parentCode 父级code
 @param success    <#success description#>
 @param fail       <#fail description#>
 */
+(void)getproductCatgoryParentCodeList:(NSString *)parentCode success:(serviceSuccess)success failure:(serviceFailure)fail ;
/**
 商品列表

 13696834329
 
 
 @param orderBy   排序编号 0全部 1按销量 2按分享值 3按折扣 4包邮
 @param pageIndex 当分页  1开始
 @param success   <#success description#>
 @param fail      <#fail description#>
 */
+(void)getMallProductList:(NSString *)orderBy pageIndex:(NSString *)pageIndex success:(serviceSuccess)success failure:(serviceFailure)fail ;


/**
 商品详情

 @param goodId      商品id
 @param promotionId 促销活动
 @param success     <#success description#>
 @param fail        <#fail description#>
 */
+(void)getMallProductDetail:(NSString *)goodId promotionId:(NSString *)promotionId success: (serviceSuccess)success failure:(serviceFailure)fail ;
/**
 
 
 立即购买
 @param productId     商品id
 @param productSpecId 商品规格
 @param promotionId   促销活动
 @param buyNum        购买数量
 @param success       <#success description#>
 @param fail          <#fail description#>
 */
+(void)getOrderBuyNow:(NSString *)productId  productSpecId:(NSString *)productSpecId   promotionId:(NSString *)promotionId buyNum:(NSString *)buyNum success:(serviceSuccess)success failure:(serviceFailure)fail ;



/**
 提交立即购买

 @param productId     商品id
 @param productSpecId 商品规格
 @param promotionId   促销活动
 @param buyNum        购买数量
 @param addressId     收货地址id
 @param deliveryModel 配送方式
 @param success       <#success description#>
 @param fail          <#fail description#>
 */
+(void)getOrderCreateBuyNow:(NSString *)productId  productSpecId:(NSString *)productSpecId   promotionId:(NSString *)promotionId buyNum:(NSString *)buyNum  addressId:(NSString *)addressId deliveryModel:(NSString *)deliveryModel success:(serviceSuccess)success failure:(serviceFailure)fail ;

/**
 购物车立即购买

 @param cartIds cartIds
 @param success <#success description#>
 @param fail    <#fail description#>
 */
+(void)getOrderBuyCart:(NSString *)cartIds success:(serviceSuccess)success failure:(serviceFailure)fail ;

/**
 提交购物车购买

 @param cartIds       购物车id
 @param addressId     收货地址id
 @param deliveryModel 配送方式
 @param success       <#success description#>
 @param fail          <#fail description#>
 */
+(void)getOrderCreateBuyCart:(NSString *)cartIds addressId:(NSString *)addressId deliveryModel:(NSString *)deliveryModel success:(serviceSuccess)success failure:(serviceFailure)fail ;

/**
 进入订单支付 可跳过

 @param number  订单单号
 @param success <#success description#>
 @param fail    <#fail description#>
 */
+(void)getOrderPayNow:(NSString *)number success:(serviceSuccess)success failure:(serviceFailure)fail ;

/**
 提交订单支付

 @param number     订单单号
 @param payment    支付方式
 @param subpayment 支付方式子类
 @param couponId   卷id
 @param integral   积分
 @param success    <#success description#>
 @param fail       <#fail description#>
 */
+(void)getOrderSubmitPayNow:(NSString *)number payment:(NSString *)payment subPayment:(NSString *)subpayment couponId:(NSString *)couponId integral:(NSString *)integral success:(serviceSuccess)success failure:(serviceFailure)fail ;


/**
 确认支付成功 App成功支付调用

 @param number  订单单号
 @param success <#success description#>
 @param fail    <#fail description#>
 */
+(void)getOrderPaySuccess:(NSString *)number  success:(serviceSuccess)success failure:(serviceFailure)fail ;

/**
  热门搜索
  @param success <#success description#>
  @param fail    <#fail description#>
  */
+(void)getDictionaryItemHotSearchList:(serviceSuccess)success failure:(serviceFailure)fail ;


 /**
  分类

  @param success <#success description#>
  @param fail    <#fail description#>
  */
+(void)getMallProductCategoryList:(serviceSuccess)success failure:(serviceFailure)fail ;

/**
 上传图片

 @param byteImage <#byteImage description#>
 @param success   <#success description#>
 @param fail      <#fail description#>
 */
+(void)getUploadImageThumImage:(NSString *)byteImage success:(serviceSuccess)success failure:(serviceFailure)fail ;

/**
 获取区域列表

 @param parentCode <#parentCode description#>
 @param success    <#success description#>
 @param fail       <#fail description#>
 */
+(void)getRegionGetList:(NSString *)parentCode success:(serviceSuccess)success failure:(serviceFailure)fail ;

//IOS版本
 /**
  <#Description#>

  @param success <#success description#>
  @param fail    <#fail description#>
  */
+(void)getSysVersionIOS:(serviceSuccess)success failure:(serviceFailure)fail ;


@end
